package com.tianji.learning.controller;

import com.tianji.learning.domain.vo.SignResultVO;
import com.tianji.learning.service.ISignRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "签到记录相关接口")
@RestController
@RequestMapping("/sign-records")
public class SignRecordController {
    @Autowired
    private ISignRecordService signRecordService;

    @GetMapping
    @ApiOperation("查询签到记录")
    public char[] findSignRecords(){
        return signRecordService.findSignRecords();
    }

    @PostMapping
    @ApiOperation("新增签到")
    public SignResultVO addSignRecords(){
        return signRecordService.addSignRecords();
    }


}
